#ifndef _FILESYSTEMWATCHER_H_
#define _FILESYSTEMWATCHER_H_

#include <QThread>

#include "folder.h"
#include "inotify-cxx/inotify-cxx.h"

namespace Avd {

class Daemon;

class FileSystemWatcher : public QThread {
public:
	FileSystemWatcher(Daemon* daemon)  throw(InotifyException);
	virtual ~FileSystemWatcher();
	void run();

	void add(const Folder& folder);
	void remove(const Folder& folder);

private:
	Inotify* inotify;
	Daemon* daemon;
};


}

#endif // _FILESYSTEMWATCHER_H_
